<table class="table table-striped table-bordered table-hover" id="get_height">
    <thead>
        <tr>
            <th style="width:5%;text-align:center;"></th>
            <th style="width:45%">{{ lang.node_files_name }}</th>
            <th style="width:20%">{{ lang.node_files_size }}</th>
            <th style="width:20%">{{ lang.node_files_modified }}</th>
            <th style="width:10%;text-align:center;">{{ lang.string_options }}</th>
        </tr>
    </thead>
    <tbody>
    	{% if directory is iterable %}
    		{% if directory.first == true %}
				<tr>
				    <td><i class="fa fa-folder-open"></i></td>
				    <td><a href="index.php" class="load_new">&larr;</a></a></td>
				    <td></td>
				    <td></td>
				    <td></td>
				</tr>
			{% endif %}
			{% if directory.show == true %}
				<tr>
			        <td><i class="fa fa-folder-open"></i></td>
			        <td><a href="index.php?dir={{ directory.link|url_encode }}" class="load_new">&larr; {{ directory.link_show }}</a></a></td>
			        <td></td>
			        <td></td>
			        <td></td>
			    </tr>
		    {% endif %}
        {% endif %}
    	{% for folder in folders %}
    		<tr>
	            <td><i class="fa fa-folder-open"></i></td>
	            <td><a href="index.php?dir={{ folder.directory|url_encode }}{{ folder.entry|url_encode }}" class="load_new">{{ folder.entry }}</a></td>
	            <td>{{ folder.size }}</td>
	            <td>{{ folder.date|date("m/d/y H:i:s") }}</td>
	            <td class="center"></td>
	        </tr>
    	{% endfor %}
        {% for file in files %}
        	<tr>
                <td><i class="fa fa-file-text"></i></td>
                <td>
                	{% if file.extension in extensions %}
                		{% if permission.files.edit == true %}
                            <a href="edit.php?file={{ file.directory|url_encode }}{{ file.entry|url_encode }}" class="edit_file">{{ file.entry }}</a>
                        {% else %}
                            {{ file.entry }}
                        {% endif %}
                	{% else %}
                		{{ file.entry }}
                	{% endif %}
                </td>
                <td>{{ file.size }}</td>
                <td>{{ file.date|date("m/d/y H:i:s") }}</td>
                <td style="text-align:center;">
                    {% if permission.files.download == true %}
                        <a href="index.php?do=download&file={{ file.directory|url_encode }}{{ file.entry|url_encode }}"><i class="fa fa-download"></i></a>
                    {% endif %}
                </td>
            </tr>
        {% endfor %}
    </tbody>
</table>
